PointAndShootDrillShapePattern
Creates the point and shoot drill shape pattern
Overloads
public PointAndShootDrillShapePattern() |
public PointAndShootDrillShapePattern(float laserOnTime) |
public PointAndShootDrillShapePattern(float laserOnTime, LaserParameters laserParameters) |
Parameters
float | laserOnTime | Laser on time in micro seconds |
LaserParameters | laserParameters | Laser parameters to be used |
Return value
void |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
bool pulsemode = false;
PointAndShootDrillShapePattern pointandShootPattern = new PointAndShootDrillShapePattern();
pointandShootPattern.UsePulseBurstMode = pulsemode;
pointandShootPattern.LaserOnTime = 10;
// Create a Drill Pulse
DrillPulse pulse1 = new DrillPulse(2.5f, 2.5f, 5);
pointandShootPattern.AddDrillPulse(pulse1);
//Create a drill shape.
DrillShape drillShape = new DrillShape();
drillShape.SetPattern(pointandShootPattern);
//Add drill Points to the drill shape
drillShape.AddPointAndShootPoint(0, 0, 0);
drillShape.AddPointAndShootPoint(10, 5, 0);
drillShape.AddPointAndShootPoint(20, 30, 0);
// Add the Drill shape to vector image
vectorImage.AddDrill(drillShape);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}